#include<iostream>
#include<string>
using namespace std;
int main() {
    int l = 1, r = 1000000;
    string response;
    while (l != r) {
        int mid = (l + r + 1) / 2;
        cout<<mid<<endl;
        cin>>response;
        if (response == "<")
            r = mid - 1;
        else
            l = mid;
    }
    cout<<"! " << l << endl;
}
